/**
 * @param {string} s
 * @param {number} k
 * @param {character} fill
 * @return {string[]}
 */
 var divideString = function(s, k, fill) {
  const len = s.length
  if(len % k){
    s = s + fill.repeat(k - len%k);
  }
  let now = ''
  let ans = []
  for(let i = 0; i<s.length; i++){
    now += s[i]
    if(now.length === k){
      ans.push(now)
      now = ''
    }
  }
  return ans
};